package com.example.student.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Student {
    @TableId(value="id",type= IdType.AUTO)
    public Integer id;
    public String name;
    public Integer sexId;
    public Integer classId;
    public Integer age;
    public String hobby;
    public String updateTime;
    /**
     * goods表中没有这个字段，所以这里要用，TableFiled标识字段，不然要报错
     */
    @TableField(exist = false)
    private  String sexName;
    @TableField(exist = false)
    private  String className;
}
